# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-yaswfp
_pkgname=yaswfp
pkgver=0.9.3
pkgrel=10
pkgdesc='Yet Another SWF Parser.'
url='https://pypi.org/project/yaswfp/#files'
arch=('any')
license=('GPL3')
depends=('python')
makedepends=('python-setuptools')
source=("https://pypi.python.org/packages/28/80/162a418d1ae03e79987126feb0c42b876f72d5c9d33df2bed8690c6fc12a/yaswfp-$pkgver.tar.gz")
sha512sums=('06fb5d38c92f418fff77d812507621236b3fc74cf75786031bbd81ac1e61767a29647c7f1d0ffbb25d2f6f1a8749e5a732896ad66956e16c886e24e85915f72b')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --prefix=/usr --root="$pkgdir" -O1 --skip-build
}

